// JavaScript Document


//START pop up JAVASCRIPT-----------------START
function popup(id)
{
	
	
}
function close_p(id)
{
		//alert(id);
	window.document.getElementById(id).style.visibility='hidden';
}
function test()
{
		alert('news must be pop up after clicking read more..');
}
function post()
{
	window.document.getElementById("pop").style.visibility='visible';
}
function close_post()
{
		
		window.document.getElementById("pop").style.visibility='hidden';
		
}
function view_comment()
{
	window.document.getElementById("pop_view_c").style.visibility='visible';
}
function view_comment_close()
{
		
		window.document.getElementById("pop_view_c").style.visibility='hidden';
		
}
function message_post()
{
		alert("Your Comment Will be Posted in a few hours");
}

/*function test_a()
{
	window.document.getElementById("pop_view_c").style.visibility='visible';
	
	alert(BaseURL);
	var method = "POST";
	var condition = "true";
	//var url=BaseURL+"system/application/views/guest_comment_pop.php";
	var url=BaseURL+"system/application/views/guest_comment_pop.php";
	var output="ajax_test";
	var loadv="loading.......";
	//test();

	alert(method);
	alert(condition);
	alert(url);
	alert(output);
	alert(loadv);

	request(method,url,condition,output,loadv);
}*/

function comment_view(a,b,c)
{
	window.document.getElementById("pop_view_c").style.visibility='visible';
	obj=window.document.getElementById("ajax_test");
	obj.innerHTML = "<table border='1' width='100%' class='stats'><tr><td width='100' align='right' class='hed'><div align='right'>Name:</div></td><td align='left'>"+a+"</td></tr><tr><td align='right' class='last'><div align='right'>Content:</div></td><td><div align='left' style='height:230px;overflow:auto'>"+b+"</div></td></tr><tr><td width='100' align='right' class='hed'><div align='right'>Date:</div></td><td align='left'>"+c+"</td></tr></table><div align='right'><table border='0'><td width='16'><a href='javascript:view_comment_close();' style='text-decoration:none;'><img src='"+BaseURL+"images/icons/action_delete.gif' style='border:none;cursor:pointer'/></a></td><td width='16'><a href='javascript:view_comment_close();' style='text-decoration:none;'>Close</a></td></table></div>";
	//alert(a);
	//alert(b);
	//alert(c);
}
//END POP up Javascript//---------------------------

